package com.ads.tpgrupo4.server.utils;

public class UriUtils {
	
	private static final String DEFAULT_PATH_SEPARATOR = "/";

	public static String buildPath(final String... pathParts) {
		
		final StringBuilder builder = new StringBuilder();
		
		for (int i = 0; i < pathParts.length; i++) {
			builder.append(pathParts[i]);
			if (i != pathParts.length - 1) {
				builder.append(DEFAULT_PATH_SEPARATOR);
			}
		}
		
		return builder.toString();
	}

}
